<html>
<title>美文分享后台管理</title>
<link href="<?php echo base_url();?>/css/admin/base.css" rel="stylesheet" type="text/css">
<script language="javascript">
var preFrameW = '206,*';
var FrameHide = 0;
var curStyle = 1;
var totalItem = 9;
function ChangeMenu(way){
	var addwidth = 10;
	var fcol = top.document.all.btFrame.cols;
	if(way==1) addwidth = 10;
	else if(way==-1) addwidth = -10;
	else if(way==0){
		if(FrameHide == 0){
			preFrameW = top.document.all.btFrame.cols;
			top.document.all.btFrame.cols = '0,*';
			FrameHide = 1;
			return;
		}else{
			top.document.all.btFrame.cols = preFrameW;
			FrameHide = 0;
			return;
		}
	}
	fcols = fcol.split(',');
	fcols[0] = parseInt(fcols[0]) + addwidth;
	top.document.all.btFrame.cols = fcols[0]+',*';
}


function mv(selobj,moveout,itemnum)
{
   if(itemnum==curStyle) return false;
   if(moveout=='m') selobj.className = 'itemsel';
   if(moveout=='o') selobj.className = 'item';
   return true;
}

function changeSel(itemnum)
{
  curStyle = itemnum;
  for(i=1;i<=totalItem;i++)
  {
     if(document.getElementById('item'+i)) document.getElementById('item'+i).className='item';
  }
  document.getElementById('item'+itemnum).className='itemsel';
}

</script>
<style>
body { padding:0px; margin:0px; }
#tpa {
	color: #009933;
	margin:0px;
	padding:0px;
	float:right;
	padding-right:10px;
}

#tpa dd {
	margin:0px;
	padding:0px;
	float:left;
	margin-right:2px;
}

#tpa dd.ditem {
	margin-right:8px;
}

#tpa dd.img {
  padding-top:6px;
}

div.item
{
  text-align:center;
	background:url(<?php echo base_url();?>/img/admin/topitembg.gif) 0px 3px no-repeat;
	width:82px;
	height:26px;
	line-height:28px;
}

.itemsel {
  width:80px;
  text-align:center;
  background:#226411;
	border-left:1px solid #c5f097;
	border-right:1px solid #c5f097;
	border-top:1px solid #c5f097;
	height:26px;
	line-height:28px;
}

*html .itemsel {
	height:26px;
	line-height:26px;
}

a:link,a:visited {
 text-decoration: underline;
}

.item a:link, .item a:visited {
	font-size: 12px;
	color: #ffffff;
	text-decoration: none;
	font-weight: bold;
}

.itemsel a:hover {
	color: #ffffff;
	font-weight: bold;
	border-bottom:2px solid #E9FC65;
}

.itemsel a:link, .itemsel a:visited {
	font-size: 12px;
	color: #ffffff;
	text-decoration: none;
	font-weight: bold;
}

.itemsel a:hover {
	color: #ffffff;
	border-bottom:2px solid #E9FC65;
}

.rmain {
  padding-left:10px;
}
</style>
</head>
<body bgcolor="#ffffff">
<table background="<?php echo base_url();?>/img/admin/topbg.gif" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tbody><tr>
    <td height="60" width="20%"><img src="<?php echo base_url();?>/img/admin/logo.gif"></td>
    <td align="right" valign="bottom" width="80%">
    <table border="0" cellpadding="0" cellspacing="0" width="1150">
        <tbody><tr>
            <td style="padding-right:10px;line-height:26px;" align="right" height="26">
                您好：<span class="username"><?php $this->load->library('session');
                                             $name=$this->session->userdata('username');
											 echo $name;?></span>，欢迎使用内容管理系统！
                [<a href="<?php echo site_url('former/index')?>" target="_top">网站主页</a>]
                [<a href="<?php echo site_url('admin/quit');?>" onclick="if (confirm('确定要退出吗？')) return true; else return false;" target="_top">注销退出</a>]&nbsp;
				
            </td>
        </tr>
        <tr>
            <td class="rmain" align="right" height="34">
		<dl id="tpa">
		<dd><div class='itemsel' id='item1' onMouseMove="mv(this,'move',1);" onMouseOut="mv(this,'o',1);"><a href="<?php echo site_url("admin/menu/1");?>" onclick="changeSel(1)" target="menu">网站首页</a></div></dd>
		<!--<dd><div class='item' id='item2' onMouseMove="mv(this,'m',2);" onMouseOut="mv(this,'o',2);"><a href="<?php //echo site_url("admin/menu/2");?>" onclick="changeSel(2)" target="menu">学院概况</a></div></dd><!--2-->
		
      
		</dl>
		</dl>
            </td>
        </tr>
    </tbody></table></td>
  </tr>
</tbody></table>

</body></html>